<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module IntKBase</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>IntKBase</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cmatsu%5Cdropbox%5Cnicoli-python%5Cpaic2014%5Ccellularautomata%5Ccellularautomatagenerator%5Csvn%5Ctrunk%5Csrc%5Cutil%5Cintkbase.py">c:\users\matsu\dropbox\nicoli-python\paic2014\cellularautomata\cellularautomatagenerator\svn\trunk\src\util\intkbase.py</a></font></td></tr></table>
    <p><tt>Created&nbsp;on&nbsp;28/11/2014<br>
&nbsp;<br>
@author:&nbsp;Nicoli&nbsp;Araújo</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="IntKBase.html#IntKBase">IntKBase</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="IntKBase">class <strong>IntKBase</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Classe&nbsp;que&nbsp;abriga&nbsp;o&nbsp;método&nbsp;publicado&nbsp;por&nbsp;Mark&nbsp;Borgerding&nbsp;no&nbsp;dia&nbsp;15/02/2010&nbsp;no&nbsp;site&nbsp;StackOverflow.<br>
&nbsp;<br>
Atributos&nbsp;da&nbsp;classe:<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;num&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(int)&nbsp;&nbsp;-&nbsp;número&nbsp;que&nbsp;que&nbsp;deve&nbsp;ser&nbsp;transformado<br>
&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(int)&nbsp;&nbsp;-&nbsp;base&nbsp;na&nbsp;qual&nbsp;num&nbsp;deve&nbsp;ser&nbsp;escrito<br>
&nbsp;&nbsp;&nbsp;&nbsp;numInBase&nbsp;(string)&nbsp;-&nbsp;num&nbsp;escrito&nbsp;na&nbsp;base&nbsp;b<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="IntKBase-__init__"><strong>__init__</strong></a>(self, num, b)</dt></dl>

<dl><dt><a name="IntKBase-intKbase"><strong>intKbase</strong></a>(self, x, b)</dt><dd><tt>(int,&nbsp;int)&nbsp;-&gt;&nbsp;string<br>
Método&nbsp;que&nbsp;transforma&nbsp;num&nbsp;em&nbsp;um&nbsp;número&nbsp;na&nbsp;base&nbsp;b,&nbsp;e&nbsp;o&nbsp;retorna.<br>
b&nbsp;deve&nbsp;ser&nbsp;estar&nbsp;entre&nbsp;2&nbsp;e&nbsp;32,&nbsp;ou&nbsp;seja,&nbsp;2&nbsp;&lt;&nbsp;=&nbsp;b&nbsp;&lt;&nbsp;=&nbsp;32.<br>
b&nbsp;também&nbsp;pode&nbsp;ser&nbsp;64,&nbsp;mas&nbsp;somente&nbsp;64.<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;<a href="#IntKBase">IntKBase</a>(1200,&nbsp;60).numInBase<br>
'UA'<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;<a href="#IntKBase">IntKBase</a>(12,&nbsp;34).numInBase<br>
'c'<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;<a href="#IntKBase">IntKBase</a>(12,&nbsp;2).numInBase<br>
'1100'<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;<a href="#IntKBase">IntKBase</a>(12,&nbsp;8).numInBase<br>
'14'&nbsp;<br>
&nbsp;<br>
retorna&nbsp;rets</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>